import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const vehicleApi = {
    /**查询车辆列表 待认证车辆列表 {auditStatus:0,portAddress:PLATFORM}*/
    // 待认证车辆列表:0  认证通过的车辆列表:1    //可传numberplate  vehicleType  certStatus 进行搜索
    queryList(params) {
        let url = TCHYURL + '/supplier/vehicle/list'
        return myaxios.get(url, params)
    },
    // 获取所有车辆种类
    getAllVehicleType() {
        let url = TCHYURL + '/supplier/vehicle/vehicleList'
        return myaxios.get(url)
    },
    // 新增车辆
    addVehicle(params) {
        let url = TCHYURL + '/supplier/vehicle/insert'
        return myaxios.post(url, params)
    },
    // 车牌号验重
    checkNumberplate(params) {
        let url = TCHYURL + '/supplier/vehicle/checkNumberplate'
        return myaxios.get(url, params)
    },
    // 车辆-详情    {vehicleId:1683719814604}
    getWaitAuditDetails(params) {
        let url = TCHYURL + '/supplier/vehicle/updateDetail'
        return myaxios.get(url, params)
    },
    getVehicleDetails(params) {
        let url = TCHYURL + '/supplier/vehicle/detail'
        return myaxios.get(url, params)
    },
    // 修改车辆
    updateVehicle(params) {
        let url = TCHYURL + '/supplier/vehicle/update'
        return myaxios.post(url, params)
    },
    // 通过车辆类型查询规格
    getModePull(params) {
        let url = TCHYURL + '/supplier/vehicle/vehicleModePull'
        return myaxios.get(url, params)
    },

}
export default vehicleApi;